<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<table>
		<tr>
			<th>书名</th>
			<th>作者</th>
			<th>价格</th>
			<th>库存</th>
			<th>图片</th>
			<th>编号</th>
			<th>出版社</th>
		</tr>
		<c:forEach items="${requestScope.list }" var="u" varStatus="s">
			<tr>
				<th>${u.name }</th>
				<th>${u.author }</th>
				<th>${u.price }</th>
				<th>${u.currcount }</th>
				<th>${u.picture }</th>
				<th>${u.isbn }</th>
				<th>${u.publish }</th>
			</tr>
		</c:forEach>
		<tr>
			<td colspan="7" align="center">
				<a href="bookshows.action?pageIndex=1">首页</a>
				<a href="bookshows.action?pageIndex=${currentPage-1 }">上一页</a>
				<a href="bookshows.action?pageIndex=${currentPage+1 }">下一页</a>
				<a href="bookshows.action?pageIndex=${totalPages }">尾页</a>
			</td>
		</tr>
		<tr>
			<td colspan="7" align="center">
				共${count }条记录,当前页为${currentPage },共${totalPages }页
			</td>
		</tr>
	</table>
</body>
</html>